# 将转写结果 self._alltext.append(rst)加入到一个数组中，
# 从数组不断中取出
# 最终转写完成的结果通过 add_garaph()加入到docx中
#        self._revResult = ""
#        self._alltext = []
from SaveText import Text
from main import RtasrClient

text = []

client = RtasrClient()
text_ALinfo = client._alltext

text = Text()
txSave = text.addText()
# if client is not None:
#     myInfo = client.allInfo()
#     while True:
#         text.addText().add_paragraph(myInfo)
text = text_ALinfo

for i in range(len(text)):
    txt = ''
    txt = text[i]
    txSave.add_paragraph(txt)

txSave.save("exx.docx")
